Repository navigation
Conversation
battlenet.lua keyed every rule on steam_app_battlenet, a class only a Steam-hosted install would carry. omarchy-install-gaming-battlenet installs Battle.net standalone under umu-launcher, where the launcher's class is battle.net.exe and the installer's is battle.net-setup.exe -- which default/applications/battlenet.desktop already records as StartupWMClass=battle.net.exe. The two files disagreed, so none of these rules applied to Omarchy's own installer: the launcher tiled into the current workspace and the Blizzard installer kept its decorations, blur and shadow. Drop the title predicates with the class fix. A window rule is applied when the window is mapped, and the launcher maps as "Battle.net Login", only becoming "Battle.net" after sign-in, so a title-matched rule could not fire either. Under the standalone install the launcher owns its class by itself -- games get their own (wow.exe and friends) -- so there is nothing left to disambiguate by title, and the launcher's own dialogs (the folder picker in "Locate this game", update prompts) inherit the float instead of tiling. The test asserts the rules match whatever StartupWMClass the desktop entry declares, so the two cannot drift apart again.
|
Thanks for the detailed write-up. I ran this on a disposable Omarchy VM (Hyprland 0.56.2, umu-launcher 1.4.4 from the Arch repos, GE-Proton11-7 as umu downloads it). On that stock setup, Battle.net reports the class What I checked
What this would change on a stock install
What may still be real Your point that the launcher maps as What would help Your measurement differs from this one, so something in your environment differs from stock. With Battle.net running, could you post the output of the following?
Codex Medium gave a second opinion, with my reproduction evidence as part of its brief. It agreed with the conclusion, and independence is not guaranteed. It contributed the vacuous-test finding and the point about game windows sharing the class. This is waiting on you, the author. |
What happened
default/hypr/apps/battlenet.luamatchesclass = "^steam_app_battlenet$", but Battle.net installed withomarchy install gaming battlenetproducesbattle.net.exe(launcher) andbattle.net-setup.exe(installer). Omarchy's owndefault/applications/battlenet.desktopalready records the right value —StartupWMClass=battle.net.exe— so the two shipped files disagree and none of these rules ever apply to Omarchy's own installer.Measured on a fresh standalone install (Omarchy 4.0.2, Hyprland 0.56.2):
Expected: the launcher floats centered at 1280x800 and the installer loses its decorations, blur and shadow. Actual: the launcher tiles into the current workspace, the Blizzard installer is framed by the WM, and the folder picker used by Locate this game tiles at column width, which is where it is genuinely unusable.
[INFERENCE]thesteam_app_battlenetstring looks like it predates the move toumu-launcher, or was written against a Steam-hosted install.Also removed: title predicates that cannot match
A window rule is applied when the window is mapped, and the launcher maps with the title
Battle.net Login, only becomingBattle.netafter sign-in — sotitle = "^Battle\\.net$"could not fire even with the class corrected. Matching on class alone is sufficient here, because in the standalone prefix the launcher owns that class by itself (games get their own, e.g.wow.exe), and it means the launcher's own dialogs — the folder picker, update prompts — float with it instead of tiling.Steps to reproduce
omarchy install gaming battleneton a machine with no previous Battle.net.hyprctl clients -j | jq -r '.[] | select(.class|test("battle";"i")) | .class'battle.net.exe/battle.net-setup.exe, and that the launcher is tiled.Tests
test/shell.d/battlenet-test.shgains a check that the rules match whateverStartupWMClassthe desktop entry declares, and that the Steam-hosted class is gone, so the two files cannot drift apart again. Red before the change:Green after.
./test/all:test/shellreports three failures on this checkout —launch-about-test.sh,plymouth-set-test.sh,snapper-test.sh— and all three fail identically on cleanmainhere (they need a root-authorized checkout, anomarchy-pkgscheckout, and a live compositor respectively). No other suite regressed.System
Omarchy 4.0.2-1, Hyprland 0.56.2, Arch, AMD RX 7900 XTX, 3 monitors. Battle.net installed via
omarchy install gaming battlenet(umu-launcher + GE-Proton), prefix~/Games/battlenet.